#include <format>
#include <iostream>
#include <regex>
#include <string>
#include <vector>
using namespace std;

namespace lsc
{
    typedef unsigned char byte;
} // namespace name



int main() {
    string s = "_asd.aF,as-";
    regex pattern("[a-zA-Z,0-9.]+");
    smatch match;
    if(regex_search(s, match, pattern)){
        cout << match.str() << endl;
    }
    return 0;
}
